package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 供应商
 * </p>
 *
 * @author sy
 * @since 2023-08-16
 */
@Getter
@Setter
@TableName("dragon_vendor")
public class Vendor implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 供应商名称
     */
    private String name;

    /**
     * 供应商电话
     */
    private String telephone;

    /**
     * 供应商地址
     */
    private String address;

    /**
     * 删除标识 0未删除 1删除
     */
    private Integer deleted;

    /**
     * 供应商分类：1原材料 2零部件 3成品
     */
    private Integer vendorCategory;

    /**
     * 信用评级
     */
    private Integer creditRating;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 供应商产品
     */
    //@TableField(exist = false)
    private String vendorProduct;
    //private Product product;
    //private List<Product> productList;

    /**
     * 供应商分类名称
     */
    @TableField(exist = false)
    private String vendorCategoryName;


}
